package org.example.utils;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class TimeUtils {

    public static String getCurrentDate(){
        Date date = new Date();
        String createDate = DateUtil.format(date, "yyyy.MM.dd HH:mm:ss");
        return createDate;
    }

    public static String getCurrentTime(){
        Date date = new Date();
        String createDate = DateUtil.format(date, "yyyy.MM.dd HH:mm:ss");
        return createDate;
    }
}
